package com.szxy.miaosha.exception;

import com.szxy.miaosha.utils.CodeMsg;
import lombok.Data;

/**
 * @Author: zwz
 * @Date:2020/9/7 20:43
 * @Description:com.szxy.miaosha.exception
 * @Version:1.0
 **/
@Data
public class GlobalException extends RuntimeException {

    private CodeMsg cm;

    public GlobalException(CodeMsg cm) {
        super(cm.toString());
        this.cm = cm;
    }
}
